﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ASoft.Base;

namespace ASoft.Repository
{
    public class WeatherStationRepository : ARepository<WeatherStationInfoEntity>
    {
        public override string KeyName
        {
            get
            {
                return "";
            }
        }

        public WeatherStationInfoEntity GetLast()
        {
            var sql = string.Format("select top 1 * from WeatherStationInfo order by 时间 desc");
            return GetTopOne(sql);
        }

    }
}
